# -*- coding:utf-8 -*-
import RPi.GPIO as io
import time

class Car(object):
    """基于树莓派的小汽车"""
    def __init__(self, power):
        super(Car, self).__init__()
        self.power = power
        self.speed_left = 0.5     #左马达速度
        self.speed_right = 0.5    #右马达速度
        self.infra_left = 0       #左红外线状态
        self.infra_right = 0      #右红外线状态

